﻿@using UnityWeb.Resources.User
@model UnityWeb.Models.User.UserViewModel

@{
  ViewBag.Title = Login.Title;
  Layout = "~/Views/Session/_Layout.cshtml";
}

@using (Html.BeginForm("Create", "Session", FormMethod.Post))
{
  <div class="col5 marginauto">
    <p>
      @Html.LabelFor(m => m.UserName, Login.Username, new { @class = "col2 floatleft" })
      @Html.TextBoxFor(m => m.UserName, new { @class = "col3 floatright txt" })
    </p>
    <div>@Html.ValidationMessageFor(m => m.UserName)</div>
    <div class="clearfix"></div>
    <p>
      @Html.LabelFor(m => m.Password, Login.Password, new { @class = "col2 floatleft" })
      @Html.PasswordFor(m => m.Password, new { @class = "col3 floatright txt" })
    </p>
    <div>@Html.ValidationMessageFor(m => m.Password)</div>
    <div class="clearfix"></div>
    <input type="submit" class="floatright submitbtn txtcentre" value="Submit" id="logIn" />
    <p class="forgottenpassword">@Html.ActionLink("Forgotten Password?", "Forgotten", "Password")</p>
    <div class="clearfix"></div>
  </div>
}
